package com.scott.spring.ch01.service;

import org.springframework.context.annotation.Lazy;
import org.springframework.context.annotation.Scope;
import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.stereotype.Service;

/**
 * @author 黄后林
 * @version 1.0
 * @date 2021-12-14 09:38:39
 */
@Service
@Lazy(value = false)
public class RoleService {

    public RoleService() {
        System.out.println("--------执行#RoleService的构造方法--------");
    }

    public int add(int x,int y){
        System.out.println("--------执行#add方法--------");
        return x+y;
    }
}
